<?php echo (isset($this->listGoingViral[5]))? $this->listGoingViral[5]['user_detail_id']:'';?>
<ul class="box" id="list_going_viral">
    <?php 
    $i=1; 
    foreach ($this->listGoingViral as $row): 
    ?>
    <li>
        <div class="bg-anh"><a href="#" title=""><img src="<?php echo $this->baseUrl();?>/images/users/<?php echo $row['user_id'] .'/'. $row['avatar'];?>" alt="<?php echo $row['first_name'];?>"/> </a></div>
        <div class="bg-white">
            <h5><a href="#" title=""><span class="code">#<?php echo $row['user_code']?></span> <span class="name"><?php echo $row['first_name']?></span></a></h5>
            <p class="share-square"><span class="icon-square"></span><span class="count">178</span>SHARES</p>
            <span class="icon-chart"></span>
            <div class="view"><a href="<?php echo $this->baseUrl();?>/user/view-profile/member/<?php echo $row['user_id']?>" title="">View profile</a></div>                   
            <p class="des">Favourite Brands</p>
            <p class="tag"><a href="#"><span class="left-s"></span><span class="mid-s">Gucci</span><span class="right-s"></span></a><a href="#"><span class="left-s"></span><span class="mid-s">Louis Vuitton</span><span class="right-s"></span></a><a href="#"><span class="left-s"></span><span class="mid-s">Hermes</span><span class="right-s"></span></a><a href="#"><span class="left-s"></span><span class="mid-s">Chanel</span><span class="right-s"></span></a><a href="#"><span class="left-s"></span><span class="mid-s">Giogio</span><span class="right-s"></span></a></p>
            <div class="txt-like">
            	<ul class="list-social1">
					<li><div class="fb-like" data-href="<?php echo 'http://' . $_SERVER['SERVER_NAME'] .'/'. $this->baseUrl();?>/user/view-profile/member/<?php echo $row['user_id']?>" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></div></li>
					<li><a href="https://twitter.com/share" data-url="<?php echo 'http://' . $_SERVER['SERVER_NAME'] .'/'. $this->baseUrl();?>/user/view-profile/member/<?php echo $row['user_id']?>" class="twitter-share-button" data-via="uySG6Ut1BPf3EHOzPnwyVA" data-lang="en" data-size="small">Tweet</a></li>
					<li>
						<div style="margin-top: 3px;"><div data-href="<?php echo 'http://' . $_SERVER['SERVER_NAME'] .'/'. $this->baseUrl();?>/user/view-profile/member/<?php echo $row['user_id']?>" class="g-plusone" data-size="small" data-recommendations="false"></div></div>
					</li>
				</ul>
            </div>
        </div>
    </li>
    <?php if($i % 5 == 0):?>
       <div class="bg-anh"><a href="#" title=""><img src="<?php echo $this->baseUrl();?>/images/img-going_22.jpg" alt=""/> </a></div>
    <?php endif;?>
    <?php 
        $i++;
    endforeach;?>
</ul>
<div class="loading" id="loading">Wait a moment... it's loading!</div>
<div class="loading" id="nomoreresults">Sorry, no more results for your pagination demo.</div>
